<template>
  <div>
    <el-card>
      <mavon-editor style="position: static" v-model="value"/>
      <el-button @click="getValue">确认</el-button>
      <mavon-editor style="position: static" v-model="value" :editable="false" :toolbarsFlag="false" :defaultOpen="defaultData" :subfield="false"/>
    </el-card>

  </div>
</template>
<script>
  export default {
    name: 'Md',
    data () {
      return {
        value: '',
        defaultData: 'preview'
      }
    },
    methods: {
      getValue () {
        console.log(this.value)
      }
    },
    mounted () {

    }
  }
</script>

<style scoped>

</style>
